package com.yang.repository;

import com.yang.entity.ImageRecord;
import com.yang.type.DigitalHumanStatusEnum;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ImageRecordRepository
        extends JpaRepository<ImageRecord, Long>, JpaSpecificationExecutor<ImageRecord> {
    List<ImageRecord> findByStatusAndFailedCountLessThanOrderByIdAsc(
            DigitalHumanStatusEnum status, Integer failedCount);
}
